package servlets;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Trabalho PD - 2014/2015
 * @author a21210380 a21210392
 */
@WebServlet("/teste.html")
public class TesteDataTableServlet extends ServletBase {
    
    public TesteDataTableServlet() {
        super("Teste", null, null, null);
    }

    @Override
    protected void onGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        callJsp(JSP_TESTE, req, resp);
        super.doGet(req, resp);
    }

    @Override
    protected void onPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        callJsp(JSP_TESTE, req, resp);
        super.doPost(req, resp);
    }
}
    /*
        String json ="{\"tableData\":[\n" +
"	{\"name\":\"ola teste\", \"position\":5421},\n" +
"{\"name\":\"Garrett Winters\", \"position\":8422}\n" +
"]}";
        */
